#ifndef PATCHCOLLECTOR_H
#define PATCHCOLLECTOR_H
#include "StomperLib/Objects/EditorObjectCollector.h"
#include "StomperLib/Objects/RectPatchObject.h"
namespace StomperLib {
class PatchCollector : public StomperLib::EditorObjectCollector
{
 private:

 public:

  PatchCollector( ) {
  }

  ~PatchCollector ( ){
  }

 public:

  std::string GetHeader( )
  {
    return "Patches";
  }

  std::function<bool(std::string)> GetFilter( )
  {
    return [&] ( std::string &file )->bool {
             return file.find( ".patches" ) != std::string::npos;
    };
  }

  Json::Value GetContentNode( JsonPTR jsonPtr )
  {
    return jsonPtr->get( "Patches", 0 );
  }

};

}

#endif // ifndef PATCHCOLLECTOR_H